package org.domain.rescue2011.session;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

import es.us.isa.jdbl.domain.Project;
import es.us.isa.jdbl.domain.ResearchLine;

@Name("researchLineHome")
public class ResearchLineHome extends EntityHome<ResearchLine>{


	public void setResearchLineNid(Integer id) {
		setId(id);
	}

	public Integer getResearchLineNid() {
		return (Integer) getId();
	}

	@Override
	protected ResearchLine createInstance() {
		ResearchLine researchLine = new ResearchLine();
		return researchLine;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public ResearchLine getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}
}
